#ifndef SPACECONTROLLEDPIPESPRITE_H
#define SPACECONTROLLEDPIPESPRITE_H

#include"abstractpipe.h"
class SpaceControlledPipeSprite : public AbstractPipe
{
    Q_OBJECT
    float vy,g,upperBound,lowerBound,k;
private slots:
    void onJump(float);
    void SoundAmpJump(float);
public:
    explicit SpaceControlledPipeSprite(
            float x0,float y0,float g0,
            float ymax,float ymin,
            bool docount,
            float corrfactor,
            float spd=3,QObject *parent = nullptr);
    ~SpaceControlledPipeSprite();
protected:
    void updateXY();
    void afterUpdateXY();
private slots:
    void onGameOver();
    void onShiftPressed();
    void onZPressed();
    void onFreqAndVolume(float freq,float volume);
};

#endif // SPACECONTROLLEDPIPESPRITE_H
